package com.cqemme.hardwareservice.config;
import com.cqemme.comm.constraint.MqNames;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 86156
 */
@Configuration
public class RabbitConfiguration {

    @Bean
    public Queue studentLocationQueue() {
        return new Queue("student-location");
    }

    @Bean
    public Queue studentLocationToApp() {
        return new Queue("student-location-to-app");
    }

    @Bean
    public Queue accessRecordApp() {
        return new Queue(MqNames.ACCESS_RECORD_INFO);
    }

    @Bean
    public Queue esAccessRecordApp() {
        return new Queue(MqNames.ES_ACCESS_RECORD_INFO);
    }

    @Bean
    public Queue earlyWarningApp() {
        return new Queue(MqNames.EARLY_WARNING_RECORD_INFO);
    }
    @Bean
    public Queue esEarlyWarningApp() {
        return new Queue(MqNames.ES_EARLY_WARNING_RECORD_INFO);
    }
    @Bean
    public Queue sendErrorAccessRecord() {
        return new Queue(MqNames.SEND_ERROR_ACCESS_RECORD_INFO);
    }
    @Bean
    public Queue sendSchoolHardware() {
        return new Queue(MqNames.SCHOOL_HARDWARE_TO_ACTIVITI_ALARM);
    }
}
